<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/28 0028
 * Time: 19:29
 */
include "config.php";
$uId = $_POST["uid"];
$gId = $_POST["gid"];
$sql = "DELETE FROM `cartinfo` WHERE `gId`=".$gId." AND `uid`=".$uId.";";
$result = $conn->query($sql);
if ($result->num_rows >= 1){
    $arr = array("meg"=>"删除成功","status"=>1);

}
print_r(json_encode($arr));
$conn->close();